package cn.ztr.ymcc.scheduledtasks;

import cn.ztr.ymcc.service.IKillActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class Preheating {
    @Autowired
    private IKillActivityService killActivityService;

    @Scheduled(cron = "0/10 * * * * *")
    public void addCourse2Redis(){
        killActivityService.addCourse2Redis();
    }
}
